﻿using System;
using UnityEngine;
using UnityEngine.UI;

// Token: 0x020003AE RID: 942
public class ModalYesNo : ModalUI
{
	// Token: 0x06001773 RID: 6003 RVA: 0x0009C030 File Offset: 0x0009A230
	protected override void Awake()
	{
		base.Awake();
	}

	// Token: 0x06001774 RID: 6004 RVA: 0x0009C038 File Offset: 0x0009A238
	private void Update()
	{
	}

	// Token: 0x06001775 RID: 6005 RVA: 0x0009C03C File Offset: 0x0009A23C
	public void Yes()
	{
		if (this.yesSE != null)
		{
			this.GameCtrl.audioCtrl.Play2DSE(this.yesSE);
		}
		if (this.yesAct != null)
		{
			this.yesAct();
		}
		base.End();
	}

	// Token: 0x06001776 RID: 6006 RVA: 0x0009C08C File Offset: 0x0009A28C
	public void No()
	{
		if (this.noSE != null)
		{
			this.GameCtrl.audioCtrl.Play2DSE(this.noSE);
		}
		if (this.noAct != null)
		{
			this.noAct();
		}
		base.End();
	}

	// Token: 0x06001777 RID: 6007 RVA: 0x0009C0DC File Offset: 0x0009A2DC
	public void SetUp(string text, Action yesAct, Action noAct)
	{
		this.text.text = text;
		this.yesAct = yesAct;
		this.noAct = noAct;
	}

	// Token: 0x04001B1E RID: 6942
	public Canvas myCanvas;

	// Token: 0x04001B1F RID: 6943
	public Text text;

	// Token: 0x04001B20 RID: 6944
	private Action yesAct;

	// Token: 0x04001B21 RID: 6945
	private Action noAct;

	// Token: 0x04001B22 RID: 6946
	public AudioClip yesSE;

	// Token: 0x04001B23 RID: 6947
	public AudioClip noSE;
}
